package com.chenxin.common.enums;

/**
 * WMS业务状态
 *
 * @author gry
 */
public enum WmsBusinessStatus {
    IB_MASTER_INIT(0, "初始"),
    IB_MASTER_EXEC(1, "收货中"),
    IB_MASTER_DONE(2, "收货完成"),
    IB_MASTER_CANCEL(4, "取消"),

    IB_DETAIL_INIT(0, "初始"),
    IB_DETAIL_EXEC(1, "收货中"),
    IB_DETAIL_DONE(2, "收货完成"),
    IB_DETAIL_CANCEL(4, "取消"),

    OB_MASTER_INIT(0, "初始"),
    OB_MASTER_PREPARING(1, "备货中"),
    OB_MASTER_PREPARED(2, "备货完成"),
    OB_MASTER_EXEC(3, "出库中"),
    OB_MASTER_CANCEL(4, "取消"),
    OB_MASTER_DONE(5, "出库完成"),
    OB_MASTER_SHIP(6, "发运完成"),

    OB_DETAIL_INIT(0, "初始"),
    OB_DETAIL_PREPARING(1, "备货中"),
    OB_DETAIL_PREPARED(2, "备货完成"),
    OB_DETAIL_EXEC(3, "出库中"),
    OB_DETAIL_CANCEL(4, "取消"),
    OB_DETAIL_DONE(5, "出库完成"),
    OB_DETAIL_SHIP(6, "发运完成"),

    TASK_INIT(0, "初始"),
    TASK_EXEC(1, "执行中"),
    TASK_DONE(2, "完成"),
    TASK_CANCEL(3, "取消"),

    STOCK_INIT(0,"空闲"),
    STOCK_FREEZE(1,"冻结"),
    STOCK_OVERDUE(1,"超期"),
    STOCK_EXPIRED(1,"过期");

    private final int code;
    private final String info;

    WmsBusinessStatus(int code, String info) {
        this.code = code;
        this.info = info;
    }

    public int getCode() {
        return code;
    }

    public String getInfo() {
        return info;
    }
}
